package com.fg.estate.service;

import com.fg.estate.bean.Admin;
import com.github.pagehelper.PageInfo;

import java.util.List;
import java.util.Map;

/**
 * @author 丰哥
 * 2022/10/13
 *
 * 管理员业务层
 */
public interface AdminService {

    List<Map<String, Object>> selectAllAdminAndRoles() throws Exception;

    void insert(Admin admin)  throws Exception;

    Admin login(String username, String password) throws Exception;

    PageInfo<Map<String, Object>> getPageInfo(int pageNum, int pageSize) throws Exception;
}
